﻿using System;
using System.Xml.Serialization;

namespace SimpleScheduler.Core.Domain
{
    [XmlRoot("Task")]
    [Serializable]
    public class Task
    {
        [XmlAttribute("Name")]
        public string Name { get; set; }

        [XmlAttribute("Type")]
        public string Type { get; set; }

        [XmlArray("Properties")]
        [XmlArrayItem("Property")]
        public PropertyCollection Properties { get; set; }        
    }
}